package top.meeting.room.module.system.services;

import top.meeting.room.common.base.IBaseService;
import top.meeting.room.module.system.form.RoleForm;
import top.meeting.room.module.system.model.Role;
import top.meeting.room.module.system.query.RoleQuery;

/**
 * 我有故事，你有酒么？
 * JKhaled created by yunqisong@foxmail.com 2017/7/22
 * FOR : 角色服务接口
 */
public interface IRoleService extends IBaseService<Role, RoleQuery, RoleForm> {
    /**
     * 通过 roleName 准确查找
     *
     * @param roleName
     * @return
     */
    Role findByRoleName(String roleName);

    /**
     * 添加部门
     *
     * @param roleForm
     * @return
     */
    Role saveDepartment(RoleForm roleForm);
}
